
import React from 'react'
import HOC from './HOC'

class Explain2 extends React.Component {
  render() {
    let { name, sex, age } = this.props

    return (
      <div>
        <span>高阶组件操作props</span>
        <p>我的名字:{name}</p>
        <p>我的性别:{sex}</p>
        {age < 23 && <p>我的年龄:{age}</p>}
      </div>
    )
  }
}
export default HOC(Explain2)